package com.wontube.smr.client.model.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.wontube.client.modle.vo.PagenateInfo;
import com.wontube.client.modle.vo.PagenateSupport;
import com.wontube.smr.client.model.po.Genre;
import com.wontube.smr.client.model.po.TVShow;

/**
 * @author yuechao
 *
 */
public final class TVShowItems implements Serializable {
	private static final long serialVersionUID = 804791870951659693L;
	
	private PagenateSupport pagenate = new PagenateSupport();
	private List<TVShow> items = new ArrayList<TVShow>();	
	private List<Genre> tvGenres = null;
	
	public TVShowItems(){}
	
	public TVShowItems(PagenateInfo pageInfo) {		
		if(pageInfo != null){
			if(pageInfo.getPageSize() > PagenateSupport.maxPageSize){
				pageInfo.setPageSize(PagenateSupport.maxPageSize);
			}
			pagenate.setPagenateInfo(pageInfo);
		}
	}
	
	public PagenateSupport getPagenate() {
		return this.pagenate;
	}	
	public void setPagenate(PagenateSupport value) {
		this.pagenate = value;
	}	
	public List<TVShow> getItems() {
		return this.items;
	}	
	public void setItems(List<TVShow> items) {
		this.items = items;
	}	
	public int getPageNo(){
		return pagenate.getPageNo();
	}	
	public int getPageCount(){
		return pagenate.getPageCount();
	}
	public int getTotalCount(){
		return pagenate.getTotalCount();
	}
	public void setTotalCount(int total){
		pagenate.setTotalCount(total);
	}
	public List<Genre> getTvGenres() {
		return tvGenres;
	}
	public void setTvGenres(List<Genre> tvGenres) {
		this.tvGenres = tvGenres;
	}	
}
